﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BinarySearchTree
{
    class TreeNode<T>
    {
        private T value;
        private TreeNode<T>[] children;

        public TreeNode(T value, TreeNode<T>[] children)
        {
            this.value = value;
            this.children = children;
        }

        public T Value
        {
            get
            {
                return value;
            }
            private set
            {
                value = value;
            }
        }

        public TreeNode<T>[] Children
        {
            get
            {
                return children;
            }
            private set
            {
                children = value;
            }
        }
    }
}
